package com.ybkj.o2o.zhuanxian.service;

import com.ybkj.o2o.zhuanxian.entity.CarAndLine;

import java.util.List;

public interface CarAndLineService {

  int insert(CarAndLine cal);

  List<CarAndLine> findByCar(Long carId);

  List<CarAndLine> findByLineName(String lineName);

//  int deleteByCar(Long id);
  int deleteByCar(Long id, Long lineId);

  int deleteByLine(Long id);

  int updateLineNameByLine(Long id, String name);

  int updateCarNameByCar(Long id, String carName);

  List<CarAndLine> findByLine(Long lineId);

}
